Add generics to resource formatters