Works should index resource_type. 

Fixes planning/ndlib#242 and planning/ndlib#243