Stop the osm input plugin truncating ID values on 32 bit platforms

The osm input plugin currently truncates ID values which are outside the 32 bit range on 32 bit platforms. This commit fixes that, and with it a test failure in the python tests on 32 bit machines.