Thanks for the reproducible code snippet!
Your code should be correct and we are most likely creating an illegal memory access internally.
I’ve reproduced the bug, will created and issue and we’ll fix it.
Once it’s fixed I’ll ping you here.
EDIT: GitHub issue 7 to track and fix it.
Thanks again for reporting and narrowing down this issue, @rjbruin!