Add a "isFrozen" method to DynamicObject
Helper method useful to properly manage immutable objects. (Prevent some ugly try/catch code).