Replace boost with eigen.
Fix a template problem that occured while rebasing topic/eigen on master.