Added list implementation using conditional optimizations at compile time according to macros SCRIPT_*