Improvements for preserving object's (currently, data frame's only) attributes across subsetting and coercion operations (still fixing). Other fixes and code cleanup.