Fixes for list functions and native JS wrapping