Fixed takeType to handle Any/AnyVal/AnyRef; fixed readFrame on heterogenous frame
Replace try-catch with if statement
Plugged the leak in readGroupNames method.