Fixed tests and added support for casting DynamicRow into Dictionary