Directly use MemoryTable API to access RDDs in relevant classes, instead of going through MemoryMetadataManager.
Update tests to account for new MemoryMetadataManager API
Some sanity checks for casting in MemoryMetadataManger.