Fix #8 - handle BINDs that reference scalar values correctly
in code generation.
Further test cases for structure handling.