Improve tests of graph package
Use typed memoryviews in measure package
Use typed memoryviews in morphology package
Use typed memoryviews in transform package
Fix bugs in usage of typed memoryviews