nil should be treated as any type

Closes #249.