handle aliases in getConstAsOffset