Better object validation

I had some problems with complex objects schemes, especially for mixed string/regexp properties.