Revert setTypes, getContent and getRawType

So it is just the original, but with setType added.