not sure what you mean, can you show me sample code?
tbh. i have no idea what you talking about
_i is automatic index from lua, so it should work in all cases.
if, as you suggest, inputs can be table, then it should fail already at inputpack == packname
from what you say about inputs, i would need to test also if inputpack is table ...
anyways, post this again on github, also with sample code, where it fails, here is limited option to post code.