Fixed castable implementation
Added tests
Correctly propagate namespace context throughout validation methods
Removed expected failure
Updated expected failures
Small cleaning
Merge pull request #124 from 28msec/fix-castable

Fixed castable implementation