Making application:activate() potentially faster; part of #215.