Adding static_assert for template class parameter checking.
Cleanup for Arduino 1.5.7.