Fixed bugs with cbind and as.

Worked around bugs with base functions cbind and as.