Fixed erroneous cast exceptions
Set shape of error dataset to be broadcastable to parent dataset
Fixed compilation errors by adding overriden methods