Fix numeric package attributes

Ensure the values are Strings before using String methods.
Fix boolean package attributes
Merge pull request #1 from tmatilai/package-attributes

Fix numeric and boolean package attributes