psci: validate imports when using :i

This should fix #609.