Don't use mutable dictionaries where they are not needed

Assigned objects were not `NSMutableDictionary` instances, neither the return value requires them.