fix coercions for persistent vectors
improve construction of persistent vector matrices