References instead of notnull pointers.

Fixes #126.