ISPN-4528 Genericize remaining M/R internal classes

Master only. See https://issues.jboss.org/browse/ISPN-4528 for more details. 
I wonder if we want to add types to MarshalledValue or have the get method return any type needed.