Closes #109 (makes instances smaller by using a more efficient memory layout).