object, matrix: add missing return statements in assignment ops