fixes issue #26: properly infer memory for complex expresions in return statements
fixes issue #26: properly infer memory for complex expresions in return statements

mcanthony/RiverTrail,mcanthony/RiverTrail,mcanthony/RiverTrail