Added typecheck to .clamp operations
Merge pull request #70 from PeterJensen/clamp-fix

Added typecheck to .clamp operations