acpi: add aml_resource_template() helper