[fix] handle path of a custom loader as string
[fix] use iparams as property and not as global
[+] use 'vm' to evaluate code
[+] support dot slash in paths
[fix] move existing resource closer to parent in script stack if state < 4