Refactored builtin Tribe PackScript templates
, added tests