Replaced duplicate code with variadic templates.
Better Squirrel encapsulation.