Subrealm recasting support



<!---
@huboard:{"order":1039.0,"milestone_order":1039,"custom_state":""}
-->