issue #60: properly handle small Scala maps when registration is required