Bugfix: ensure compile-time access to enum fields of Eigen::Matrix

This fixes a compiler error with clang++ 3.3 where static_asserc()
accepts only compile-time constant expressions as argument.