Add static const variables to elements

To avoid discussing multiple points, this PR is extracted from #383 and contains only the following.
- add `dimension`, `n_all_nodes`, `n_base_nodes` to mesh element classes (previously they existed only in quad)