Add constexpr usage checks

Add constexpr usage checks - without these we can't be sure that other changes don't break something.