add dict.size and relevant test. closes #6