reduces memory and increases performance of api planning_element#index

OpenStruct requires significant more memory and is slower than simple structs
Merge pull request #1441 from opf/feature/reduce_planning_elements_api_memory

Feature/reduce planning elements api memory