fix #57: give error message when using . in last piece of import without 'as'