Fixed #18969 -- Added test for year lookups with year < 1000

Thanks Tomas Ehrlich for the test

- added test for year lookup
- updated queryset documentation, __year, __month, __day, __week_day,
  __hour, __minute, __second take a string as well

Patch for [18969](https://code.djangoproject.com/ticket/18969)