resourceloader: Optimise several map-like objects with Object.create(null)
Object.create(null) is specifically for the use case of being
able to store any key/value without worrying about inherited
built-in methods.
As such, using Object.create(null) in these cases has two benefits:
* Removes the need for a hasOwn() call.
One can instead use the 'in' operator, or look for undefined,
without there being gotchas due to inherited methods.
* When the known values are always truthy (e.g. when only storing
value that are also objects or arrays), there is no need for
any explicit comparison (plain boolean evaluation).
Change-Id: I24f86f9938e4f5ccca81d15aa14a48ac3ddee341