GROOVY-6419: ensure a proper runtime exception is thrown for primtive type assignment with null