split Imager's typemap into internal, public and old perl bugfixes