#554: fixing remaining bug in typemaps.py