type-stable reference to value and actually store value when NAs found