Fix MapInfo object factory, Fix wrong reference counting