Implement .size(), .empty() for d3.{set,map}

closes #1648.