Fix #104 (import  used in value context)

Fix #104 - basically check the incoming type in import and inline statements.