Check block ids in resources

See also #167.