Make use of size assertions in references where possible.