removing unsigned comparison warnings
Merge pull request #436 from stan-dev/feature/fix_warnings

Removing compiler warnings.