Added support for lambdas and hashes for persistent_schema.