Add membership and size checking for dicts