fix as.xts() method and some subsetting bugs