Fix wrong datatypes for create_resources and ensure_packages