refactor($parse): adding function names for easier debugging

Part of #8901