Fix for bug with LatePostDeserialization hooks in generic classes.