locate: bugfix related to labels and constructors

It didn't work for types defined inside a module defined in the local file.