Added task to check if an unit is internal and is marked as external

This solves the problem of some Units are not being shown in autocomplete. The reason was that they were marked as external units instead of internal units.
closes #448