The problem I discovered on tuesday turns out to be a problem in my test case rather than the library. Added static assertions to catch such errors earlier