Convert data into newtype where applicable

Use newtypes instead of data declarations where possibel to save on
runtime overhead.