Check whether a value is a capability, not whether it is a pointer to AS 200.

This fixes LLVM #40 (calls that take structs containing capabilities as arguments were incorrectly lowered) and probably also fixes issues with [u]intcap_t in structs.