mirrors.dart : use asserts instead of runtime checks

this is internal code, so performance is > API