fix: Type errors related to reflection wrapper functionality