I belive it's legal. You are not allowed to block your own goal, but to block the opponents goal is allowed. Not sure how it's implemented here at LG, but I would not be supprised if you lose on time.
This is a rare situation, but it did occour a few time when i trained nanobrain (offline).
This is a different siatuation. To avoid surrounding the ball, a rule has been implemented, that any move of a player (Red here) should leave the ball where it can reached by an opponent without (the opponent) having to travel out off the lines.
But the opponent players are all out off lines already!
The situation where the goalie is blocked is a situation that can actually appear in a real game. There are other possible problems as well, but I think they mostly appear in constructed situations. I know about one, which requires both players to cooperate: Place all players in a straight line beween the two goals, and the ball just in front of yellows goal. Then have yellow score (not with goalie). The yellow player scoring will then be placed inside the red goal. So far, so good. Now, play the ball back to just in front of yellow goal. Have a yellow player (not goalie) go there and play the ball to the one open position in the line of players. Now, the computer has nowhere to put the yellow player after the move, and it will give an error.