The way I see it, creatures with an alignment subtype are formed, at least partially, from the essence of that alignment. Even if they manage to break away from that, it is still a part of them at their core. So they detect as both their subtype and their actual alignment.