remove functional constructors and compiled templates

per #2209 reverts #1968 removes the compiled templates due to sec issues.