types: Move remaining member functions into class definitions