Explicit instantiation

I was using explicit instantiations of Operations and friends to see if I could reduce compilation times. These patches were needed to make this possible.