fixed 0 size multiloops; remap for non-struct types; and added unit test suite for optiql