fix 'rule variable' parsing
improve structure_constructor recognition, add tests, {'sort'=>'type'} to .sms
improve allocate_object parsing
list_idx() fix
move notes to TODO
no leading underscores in .sms hash values
update TODO