Fix issues with anonymous types being indexed correctly. New test cases

Floats were not working correctly. Also made sure int and long worked as
expected