Switch over to using templates for RBM, and also fix uninstantiated template link error by using header file only.