Use typed memoryviews

First batch of commits to use typed memoryviews. More packages to follow in future...