refactor($compile): use createMap() rather than Object.create(null)

I didn't know we had a helper for this previously, but I guess we do :>