adds handler for PhpCollection\Map