Fixed bug in libstruct operator []