Fixed getInput and getAnalogInput
Added getComparatorInput (returns nil if the block/side can't emit comparator output).