Fixes for array sdb api and add push/pop methods