Add some assertions to pos for early errors.