Compact cars have come a long way from the days of simple, tinny penalty boxes for commuters.