Actually filter view_items in blocks

Among other things, this suppresses a spurious unused import warning in the compiler right now.