Fix scalar compound type issue

Addresses issue #250.