Fix issue #229 and add a test
Make GetType return Int32 for integral numbers