Fix reflection warnings and gitignore

Minor cleanup to eliminate reflection - should improve performance as well as ensuring warning-free compilation.