Fixed bug in subscript to linear indexing conversion
Fixed bug in checking feature keys
Set memory if running cluster