[tests] Test suite for (extended) arithmetic types.
This can be used to check custom arithmetic types, such as automatic differentiation types, extended precision types and types that wrap the fundamental arithmetic types for debugging purposes.
Merge is planned for 2017-04-14.