fixed bug where scalar return values were raw floats, not poitners that could be used after function call ends