[#2182] Deprecate Factory.vals() methods
Added some resources to .gitignore