With his movies “Companion” and “Novocaine,” the young actor is showing he can do comedy, pain and a mix of the two.