add unit test for sgvector's setters/getters
refactor parameters to use SGVector as dims (for future ndarray support)