[cmake] Add tests for some advanced constexpr features
This merge requests adds two configuration tests for constexpr
features that are not yet available across all of our compilers. I need the tests for PDELab, but figured they might be helpful to others as well.