Fix problem with metadata for ncol & nrow functions

fixes #169