constraints now take account for NAs
getindex methods refined, logical indexing added
cleaner test cases for getindex methods