Use the general metafunction in the implementation of the is_1d metafunction.
Bugfix template recursion.