further improvements to fixed point code generation